package com.zkyc.framework.common.pojo;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zkyc.framework.common.vo.website.PiVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (OrganizationNew)实体类
 *
 * @author libingchuan
 * @since 2022-11-09 20:13:46
 */
@TableName("web_organization_new")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrganizationNew implements Serializable {
    private static final long serialVersionUID = -40698224936767463L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 组织名称
     */
    private String organizationName;
    /**
     * 操作人
     */
    private String createUserName;
    /**
     * 图片地址
     */
    private String picUrl;
    /**
     * 父id
     */
    private Integer pid;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdated;
    /**
     * 逻辑删
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;
    /**
     * 0.下级有PI 1.下级无PI
     */
    private String treeType;

    /**
     * 0.同步 1.自定义
     */
    private String status;

    private String websiteId;

    @TableField(exist = false)
    private List<OrganizationNew> children;

    @TableField(exist = false)
    private List<PiVo> piList;

}

